3.3.2 \(\int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx\) [202]

3.3.2.1 Optimal result
3.3.2.2 Mathematica [B] (warning: unable to verify)
3.3.2.3 Rubi [A] (verified)
3.3.2.4 Maple [B] (verified)
3.3.2.5 Fricas [F]
3.3.2.6 Sympy [F]
3.3.2.7 Maxima [F]
3.3.2.8 Giac [F]
3.3.2.9 Mupad [F(-1)]

3.3.2.1 Optimal result

Integrand size = 25, antiderivative size = 442 \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=-\frac {2 (a-b) \sqrt {a+b} \left (35 a b c+23 a^2 d+9 b^2 d\right ) \cot (e+f x) E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}+\frac {2 \sqrt {a+b} \left (a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)+15 a^3 d\right ) \cot (e+f x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{15 b f}-\frac {2 a^2 \sqrt {a+b} c \cot (e+f x) \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {2 b (5 b c+8 a d) \sqrt {a+b \sec (e+f x)} \tan (e+f x)}{15 f}+\frac {2 b d (a+b \sec (e+f x))^{3/2} \tan (e+f x)}{5 f} \]

output
-2/15*(a-b)*(23*a^2*d+35*a*b*c+9*b^2*d)*cot(f*x+e)*EllipticE((a+b*sec(f*x+ 
e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/( 
a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f+2/15*(a^2*b*(45*c-23*d)-a* 
b^2*(35*c-17*d)+b^3*(5*c-9*d)+15*a^3*d)*cot(f*x+e)*EllipticF((a+b*sec(f*x+ 
e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/( 
a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/b/f-2*a^2*c*cot(f*x+e)*Ellipti 
cPi((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),(a+b)/a,((a+b)/(a-b))^(1/2))*(a+b)^ 
(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/f+2/5 
*b*d*(a+b*sec(f*x+e))^(3/2)*tan(f*x+e)/f+2/15*b*(8*a*d+5*b*c)*(a+b*sec(f*x 
+e))^(1/2)*tan(f*x+e)/f
 
3.3.2.2 Mathematica [B] (warning: unable to verify)

Leaf count is larger than twice the leaf count of optimal. \(7138\) vs. \(2(442)=884\).

Time = 26.04 (sec) , antiderivative size = 7138, normalized size of antiderivative = 16.15 \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\text {Result too large to show} \]

input
Integrate[(a + b*Sec[e + f*x])^(5/2)*(c + d*Sec[e + f*x]),x]
 
output
Result too large to show
 
3.3.2.3 Rubi [A] (verified)

Time = 1.80 (sec) , antiderivative size = 448, normalized size of antiderivative = 1.01, number of steps used = 14, number of rules used = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.560, Rules used = {3042, 4406, 27, 3042, 4544, 27, 3042, 4546, 3042, 4409, 3042, 4271, 4319, 4492}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx\)

\(\Big \downarrow \) 3042

\(\displaystyle \int \left (a+b \csc \left (e+f x+\frac {\pi }{2}\right )\right )^{5/2} \left (c+d \csc \left (e+f x+\frac {\pi }{2}\right )\right )dx\)

\(\Big \downarrow \) 4406

\(\displaystyle \frac {2}{5} \int \frac {1}{2} \sqrt {a+b \sec (e+f x)} \left (5 c a^2+b (5 b c+8 a d) \sec ^2(e+f x)+\left (5 d a^2+10 b c a+3 b^2 d\right ) \sec (e+f x)\right )dx+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {1}{5} \int \sqrt {a+b \sec (e+f x)} \left (5 c a^2+b (5 b c+8 a d) \sec ^2(e+f x)+\left (5 d a^2+10 b c a+3 b^2 d\right ) \sec (e+f x)\right )dx+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {1}{5} \int \sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )} \left (5 c a^2+b (5 b c+8 a d) \csc \left (e+f x+\frac {\pi }{2}\right )^2+\left (5 d a^2+10 b c a+3 b^2 d\right ) \csc \left (e+f x+\frac {\pi }{2}\right )\right )dx+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4544

\(\displaystyle \frac {1}{5} \left (\frac {2}{3} \int \frac {15 c a^3+b \left (23 d a^2+35 b c a+9 b^2 d\right ) \sec ^2(e+f x)+\left (15 d a^3+45 b c a^2+17 b^2 d a+5 b^3 c\right ) \sec (e+f x)}{2 \sqrt {a+b \sec (e+f x)}}dx+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 27

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \int \frac {15 c a^3+b \left (23 d a^2+35 b c a+9 b^2 d\right ) \sec ^2(e+f x)+\left (15 d a^3+45 b c a^2+17 b^2 d a+5 b^3 c\right ) \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}}dx+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \int \frac {15 c a^3+b \left (23 d a^2+35 b c a+9 b^2 d\right ) \csc \left (e+f x+\frac {\pi }{2}\right )^2+\left (15 d a^3+45 b c a^2+17 b^2 d a+5 b^3 c\right ) \csc \left (e+f x+\frac {\pi }{2}\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4546

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\sec (e+f x) (\sec (e+f x)+1)}{\sqrt {a+b \sec (e+f x)}}dx+\int \frac {15 c a^3+\left (15 d a^3+45 b c a^2+17 b^2 d a+5 b^3 c-b \left (23 d a^2+35 b c a+9 b^2 d\right )\right ) \sec (e+f x)}{\sqrt {a+b \sec (e+f x)}}dx\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right ) \left (\csc \left (e+f x+\frac {\pi }{2}\right )+1\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+\int \frac {15 c a^3+\left (15 d a^3+45 b c a^2+17 b^2 d a+5 b^3 c-b \left (23 d a^2+35 b c a+9 b^2 d\right )\right ) \csc \left (e+f x+\frac {\pi }{2}\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4409

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (15 a^3 c \int \frac {1}{\sqrt {a+b \sec (e+f x)}}dx+b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right ) \left (\csc \left (e+f x+\frac {\pi }{2}\right )+1\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+\left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}}dx\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 3042

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (15 a^3 c \int \frac {1}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right ) \left (\csc \left (e+f x+\frac {\pi }{2}\right )+1\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+\left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4271

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right ) \left (\csc \left (e+f x+\frac {\pi }{2}\right )+1\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx+\left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx-\frac {30 a^2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{f}\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4319

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (b \left (23 a^2 d+35 a b c+9 b^2 d\right ) \int \frac {\csc \left (e+f x+\frac {\pi }{2}\right ) \left (\csc \left (e+f x+\frac {\pi }{2}\right )+1\right )}{\sqrt {a+b \csc \left (e+f x+\frac {\pi }{2}\right )}}dx-\frac {30 a^2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{f}+\frac {2 \sqrt {a+b} \left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{b f}\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

\(\Big \downarrow \) 4492

\(\displaystyle \frac {1}{5} \left (\frac {1}{3} \left (-\frac {2 (a-b) \sqrt {a+b} \left (23 a^2 d+35 a b c+9 b^2 d\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b f}-\frac {30 a^2 c \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{a},\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{f}+\frac {2 \sqrt {a+b} \left (15 a^3 d+a^2 b (45 c-23 d)-a b^2 (35 c-17 d)+b^3 (5 c-9 d)\right ) \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right ),\frac {a+b}{a-b}\right )}{b f}\right )+\frac {2 b (8 a d+5 b c) \tan (e+f x) \sqrt {a+b \sec (e+f x)}}{3 f}\right )+\frac {2 b d \tan (e+f x) (a+b \sec (e+f x))^{3/2}}{5 f}\)

input
Int[(a + b*Sec[e + f*x])^(5/2)*(c + d*Sec[e + f*x]),x]
 
output
(2*b*d*(a + b*Sec[e + f*x])^(3/2)*Tan[e + f*x])/(5*f) + (((-2*(a - b)*Sqrt 
[a + b]*(35*a*b*c + 23*a^2*d + 9*b^2*d)*Cot[e + f*x]*EllipticE[ArcSin[Sqrt 
[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f 
*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/(b*f) + (2*Sqrt[a 
+ b]*(a^2*b*(45*c - 23*d) - a*b^2*(35*c - 17*d) + b^3*(5*c - 9*d) + 15*a^3 
*d)*Cot[e + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], ( 
a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e 
+ f*x]))/(a - b))])/(b*f) - (30*a^2*Sqrt[a + b]*c*Cot[e + f*x]*EllipticPi[ 
(a + b)/a, ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]* 
Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b) 
)])/f)/3 + (2*b*(5*b*c + 8*a*d)*Sqrt[a + b*Sec[e + f*x]]*Tan[e + f*x])/(3* 
f))/5
 

3.3.2.3.1 Defintions of rubi rules used

rule 27
Int[(a_)*(Fx_), x_Symbol] :> Simp[a   Int[Fx, x], x] /; FreeQ[a, x] &&  !Ma 
tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
 

rule 3042
Int[u_, x_Symbol] :> Int[DeactivateTrig[u, x], x] /; FunctionOfTrigOfLinear 
Q[u, x]
 

rule 4271
Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a 
 + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b) 
*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b*Csc[ 
c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && 
NeQ[a^2 - b^2, 0]
 

rule 4319
Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_S 
ymbol] :> Simp[-2*(Rt[a + b, 2]/(b*f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f* 
x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin[Sqrt 
[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, 
 f}, x] && NeQ[a^2 - b^2, 0]
 

rule 4406
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d 
_.) + (c_)), x_Symbol] :> Simp[(-b)*d*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m 
 - 1)/(f*m)), x] + Simp[1/m   Int[(a + b*Csc[e + f*x])^(m - 2)*Simp[a^2*c*m 
 + (b^2*d*(m - 1) + 2*a*b*c*m + a^2*d*m)*Csc[e + f*x] + b*(b*c*m + a*d*(2*m 
 - 1))*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b* 
c - a*d, 0] && GtQ[m, 1] && NeQ[a^2 - b^2, 0] && IntegerQ[2*m]
 

rule 4409
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_ 
.) + (a_)], x_Symbol] :> Simp[c   Int[1/Sqrt[a + b*Csc[e + f*x]], x], x] + 
Simp[d   Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a, b, 
c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]
 

rule 4492
Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[c 
sc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(A*b - a*B)*Rt[a 
 + b*(B/A), 2]*Sqrt[b*((1 - Csc[e + f*x])/(a + b))]*(Sqrt[(-b)*((1 + Csc[e 
+ f*x])/(a - b))]/(b^2*f*Cot[e + f*x]))*EllipticE[ArcSin[Sqrt[a + b*Csc[e + 
 f*x]]/Rt[a + b*(B/A), 2]], (a*A + b*B)/(a*A - b*B)], x] /; FreeQ[{a, b, e, 
 f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]
 

rule 4544
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. 
))*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Simp[(-C)*Cot 
[e + f*x]*((a + b*Csc[e + f*x])^m/(f*(m + 1))), x] + Simp[1/(m + 1)   Int[( 
a + b*Csc[e + f*x])^(m - 1)*Simp[a*A*(m + 1) + ((A*b + a*B)*(m + 1) + b*C*m 
)*Csc[e + f*x] + (b*B*(m + 1) + a*C*m)*Csc[e + f*x]^2, x], x], x] /; FreeQ[ 
{a, b, e, f, A, B, C}, x] && NeQ[a^2 - b^2, 0] && IGtQ[2*m, 0]
 

rule 4546
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_. 
))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Int[(A + (B - C 
)*Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]], x] + Simp[C   Int[Csc[e + f*x]*(( 
1 + Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]]), x], x] /; FreeQ[{a, b, e, f, A 
, B, C}, x] && NeQ[a^2 - b^2, 0]
 
3.3.2.4 Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(4160\) vs. \(2(403)=806\).

Time = 32.02 (sec) , antiderivative size = 4161, normalized size of antiderivative = 9.41

method result size
parts \(\text {Expression too large to display}\) \(4161\)
default \(\text {Expression too large to display}\) \(4180\)

input
int((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x,method=_RETURNVERBOSE)
 
output
2/3*c/f*(a+b*sec(f*x+e))^(1/2)/(b+a*cos(f*x+e))/(cos(f*x+e)+1)*(-14*(cos(f 
*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^ 
(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2*cos(f*x+e)+14 
*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/(cos(f*x 
+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a^2*b*cos(f* 
x+e)+14*EllipticE(cot(f*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(cos(f*x+e)/( 
cos(f*x+e)+1))^(1/2)*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b^2 
*cos(f*x+e)-18*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc( 
f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2 
)*a^2*b*cos(f*x+e)-2*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e 
)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1) 
)^(1/2)*b^3*cos(f*x+e)+7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f 
*x+e)-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e 
)+1))^(1/2)*a^2*b+7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticE(cot(f*x+e) 
-csc(f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1)) 
^(1/2)*a*b^2-9*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc( 
f*x+e),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2 
)*a^2*b-7*(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e 
),((a-b)/(a+b))^(1/2))*(1/(a+b)*(b+a*cos(f*x+e))/(cos(f*x+e)+1))^(1/2)*a*b 
^2-(cos(f*x+e)/(cos(f*x+e)+1))^(1/2)*EllipticF(cot(f*x+e)-csc(f*x+e),((...
 
3.3.2.5 Fricas [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

input
integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="fricas")
 
output
integral((b^2*d*sec(f*x + e)^3 + a^2*c + (b^2*c + 2*a*b*d)*sec(f*x + e)^2 
+ (2*a*b*c + a^2*d)*sec(f*x + e))*sqrt(b*sec(f*x + e) + a), x)
 
3.3.2.6 Sympy [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int \left (a + b \sec {\left (e + f x \right )}\right )^{\frac {5}{2}} \left (c + d \sec {\left (e + f x \right )}\right )\, dx \]

input
integrate((a+b*sec(f*x+e))**(5/2)*(c+d*sec(f*x+e)),x)
 
output
Integral((a + b*sec(e + f*x))**(5/2)*(c + d*sec(e + f*x)), x)
 
3.3.2.7 Maxima [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

input
integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="maxima")
 
output
integrate((b*sec(f*x + e) + a)^(5/2)*(d*sec(f*x + e) + c), x)
 
3.3.2.8 Giac [F]

\[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int { {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {5}{2}} {\left (d \sec \left (f x + e\right ) + c\right )} \,d x } \]

input
integrate((a+b*sec(f*x+e))^(5/2)*(c+d*sec(f*x+e)),x, algorithm="giac")
 
output
integrate((b*sec(f*x + e) + a)^(5/2)*(d*sec(f*x + e) + c), x)
 
3.3.2.9 Mupad [F(-1)]

Timed out. \[ \int (a+b \sec (e+f x))^{5/2} (c+d \sec (e+f x)) \, dx=\int {\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )}^{5/2}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right ) \,d x \]

input
int((a + b/cos(e + f*x))^(5/2)*(c + d/cos(e + f*x)),x)
 
output
int((a + b/cos(e + f*x))^(5/2)*(c + d/cos(e + f*x)), x)